// 具体的路由配置
export const routes = [
		
        {
			path: '/', 
			redirect: 'login'
		},
		
		{
			path: '/', 
			redirect: '/login'
		},
		
		
        {
            path: '/dashboard',
            name: 'dashboard',
            component: () => import('_c/tabbar/TabBar.vue'),
            children: [
                {
					path: '/dashboard', 
					redirect: '/dashboard/home'
				},
                {
					path: 'home', 
					name: 'home', 
					component: () => import('_v/home/Home.vue'), 
					// meta: {keepAlive: true}
				},
                {
					path: 'usercenter',
					name: 'usercenter',
					component: () => import('_v/account/UserCenter.vue')
				},
				{
					path: 'buy',
					name: 'buy',
					component: () => import('_v/buy/Buy.vue')
				},
				{
					path: 'sell',
					name: 'sell',
					component: () => import('_v/sell/Sell.vue')
				},
				{
					path: 'friends',
					name: 'friends',
					component: () => import('_v/friends/Friends.vue')
				},
            ]
        },
		{
		    path: '/login',
		    name: 'login',
		    component: () => import('_v/login/Login.vue')
		},
		{
		    path: '/regist',
		    name: 'regist',
		    component: () => import('_v/regist/Regist.vue')
		},
		{
		    path: '/admin',
		    name: 'admin',
		    component: () => import('_v/account/Admin.vue')
		},
		{
		    path: '/data',
		    name: 'data',
		    component: () => import('_v/account/Data.vue')
		},
		{
		    path: '/mycar',
		    name: 'mycar',
		    component: () => import('_v/account/Mycar.vue')
		},
		{
		    path: '/about',
		    name: 'about',
		    component: () => import('_v/account/About.vue')
		},

		
		{
		    path: '/403',
		    name: 'url403',
		    component: () => import('_v/err/403.vue')
		},
		{
		    path: '/404',
		    name: 'url404',
		    component: () => import('_v/err/404.vue')
		},
		{
			path: "/:pathMatch(.*)",
			redirect: "/404"
		},
      
    ]